<%@ page pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>
<%@ taglib uri="http://www.ld.com/shield/tags" prefix="shield"%>
<%@ page trimDirectiveWhitespaces="true" %>
<fmt:setLocale value="zh_CN"/>
<shield:permssion type="button">

	<table class="tab-list shield-table-odd">
		<colgroup>
			<col width="">
    		<col width="13%">
    		<col width="">
    	</colgroup>
		<caption>借阅历史</caption>
	    <tr>
	        <th class="w50 taCenter">序号</th>
	        <th>借阅人</th>
	        <th>借阅日期</th>
	        <th class="operate_icon">操作</th>
	    </tr>
	<c:forEach var="model" items="${pageBean.resultList }" varStatus="var">
	    <tr>
	        <td style="text-align: center;">${(pageBean.currentPage -1)*pageBean.pageSize+var.count }</td>
	        <td >${model.borrowerName }
	        </td>
	        <td ><input type="text" name="borrowTime" value="<fmt:formatDate pattern="yyyy-MM-dd" value="${model.borrowTime}"/>" class="Wdate"/>&nbsp;至&nbsp;<input 
	         	 type="text" name="returnTime" value="<fmt:formatDate pattern="yyyy-MM-dd" value="${model.returnTime}"/>" class="Wdate ignore"/></td>
		
	        <td>
	        	<!-- href改为data-url -->
	            <a data-url="${ctxPathA }/oa/booksmanage/borrowrecord/addOrUpd" shieldParams="{'id':'${model.id }'}" paramSelector="{currRows}" class="shieldAjax shield-icon update" viewTitle="修改该条记录？" title="修改书籍借阅信息"
	               viewWidth="600"></a>
	            <a data-url="${ctxPathA }/oa/booksmanage/borrowrecord/del" shieldParams="{'id':'${model.id }'}"  class="shieldAjax shield-icon del" viewTitle="确定要删除该条记录吗?"></a>
	        </td>
	    </tr>
	</c:forEach>
	<c:if test="${empty pageBean.resultList }">
	    <!-- 无数据时展示，有数据时展示上面的列表 -->
	    <tr class="nodatatr_plugin">
	        <td colspan="4" class="taCenter">暂无数据</td>
	    </tr>
	</c:if>
	</table>
	<%@include file="/WEB-INF/view/a/include/pagination.jsp"%>
    	
</shield:permssion>